from etc.config import project_home

url_config = [
    (r"/?$", 'app.system.main.entry'),
    (r"/captcha", "leazy.running.application.image_captcha"),
    (r"/favicon.ico", 'leazy.running.application.static_file_server', project_home + '/htdocs/favicon.ico'),
    (r"/htdocs/(.*)", 'leazy.running.application.static_file_server', project_home + '/htdocs'),
    (r"/(?P<module>\w+)/?$", 'app.system.main.entry'),
    (r"/(?P<module>\w+)/(?P<group>\w+)$", 'app.system.main.entry'),
    (r"/(?P<module>\w+)/(?P<group>\w+)/(?P<suffix>.*)$", 'app.system.main.entry'),
]
